import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import config from '@/config/index.js'

Vue.config.productionTip = false

/**
 * element-ui
 */
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

/**
 * $g
 */
import {BASE_URL} from '@/puigins/request.js'
Vue.prototype.$g={
	BASE_URL,
	IMG_URL:config.IMG_URL
}

Vue.prototype.$msgError=function(res){
	console.error(res)
	this.$message.error(res.data)
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
